/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */

import type, { TableColumnCtx } from "element-plus";
interface ExampleListItem {
  device: string;
  problem: string;
  tree: string;
  date1: string;
}

export const exampleColumns = [
  { type: "index", label: "序号", width: 60, align: "center" },
  { prop: "eventName", label: "事件类型", minWidth: 120, align: "center" },
  {
    prop: "eventLevel",
    label: "事件等级",
    minWidth: 120,
    align: "center",
  },
  {
    prop: "processGroup",
    label: "区域处置单位",
    minWidth: 120,
    align: "center",
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue.name
      } if ( cellValue ===0) {
        return ''
      } 
      else {
        return ''
      }
    }
  },
  {
    prop: "action",
    label: "事件分析报告",
    minWidth: 210,
    align: "center",
  },
];
